<?php

function modalbox($uri = '', $title = '', $window_title = 'Окно', $attributes = '', $widht = '500') {
    	
    $site_url = modul_url($uri, true);
    $onclick  = "ModalBox('".$site_url."', ".$widht.", '".$window_title."')";
    
    return js_anchor($onclick, $title, $attributes);
}

function modalboxquestion ($uri, $title, $window_title, $attributes = '') {
    
    $site_url = modul_url($uri);
    $onclick  = "ModalBoxQuestion('".$site_url."', '".$window_title."')";
    
    return js_anchor($onclick, $title, $attributes);
}

function visual_editor($name = 'text', $value = '') {
    
    $CI =& get_instance();
    return $CI->template->view('blocks/tiny_mce', array('name' => $name, 'value' => $value));
}